//
//  ZjzApplePayTool.h

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
//#define isServiceVerify 1//支付完成返回 校验方式
//typedef NS_ENUM(NSInteger, ZjzApplePayState) {
//    ZjzApplePayStateNoPaymentPermission,//没有Payment权限
//    ZjzApplePayStateAddPaymentFailed,//addPayment失败
//    ZjzApplePayStatePurchasing,//正在购买
//    ZjzApplePayStatePurchased,//购买完成(销毁交易)
//    ZjzApplePayStateFailed,//购买失败(销毁交易)
//    ZjzApplePayStateCancel,//用户取消
//    ZjzApplePayStateRestored,//恢复购买(销毁交易)
//    ZjzApplePayStateDeferred,//最终状态未确定
//};
//@class SKProduct;
//@class SKPaymentTransaction;
@interface DZApplePayHelper : NSObject
@property(nonatomic,copy)void (^ApplePayBuyVipBlock)(void);
@property(nonatomic,copy)void (^ApplePayRepeatBuyVipBlock)(void);
+ (instancetype)defaultManager;
- (void)beginApplePay:(NSString *)productId;
@end

NS_ASSUME_NONNULL_END
